package com.iplant.aps.service.po.bms;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 部门表
 *
 * @author ShrisJava
 */
public class BMSDepartment implements Serializable {

    private static final long serialVersionUID = 1L;

    public int ID = 0;

    public String Name = "";

    public int Active = 0;

    public int ParentID = 0;

    public List<BMSDepartment> SonList = new ArrayList<>();

    public int Type = 0;

    @JsonProperty("ID")
    public int getID() {
        return ID;
    }

    public void setID(int iD) {
        ID = iD;
    }

    @JsonProperty("Name")
    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    @JsonProperty("Type")
    public int getType() {
        return Type;
    }

    public void setType(int type) {
        Type = type;
    }

    @JsonProperty("Active")
    public int getActive() {
        return Active;
    }

    public void setActive(int active) {
        Active = active;
    }

    @JsonProperty("ParentID")
    public int getParentID() {
        return ParentID;
    }

    public void setParentID(int parentID) {
        ParentID = parentID;
    }

    @JsonProperty("SonList")
    public List<BMSDepartment> getSonList() {
        return SonList;
    }

    public void setSonList(List<BMSDepartment> sonList) {
        SonList = sonList;
    }

    public BMSDepartment() {
        this.ID = -1;
        this.Name = "";
        this.SonList = new ArrayList<>();
        this.Active = 1;
        this.ParentID = 0;
    }
}
